<html>
<head><meta charset="utf-8"><title>simple bench parsing option · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/simple.20bench.20parsing.20option.html">simple bench parsing option</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="198260150"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/simple%20bench%20parsing%20option/near/198260150" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Natalie Popescu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/simple.20bench.20parsing.20option.html#198260150">(May 20 2020 at 21:35)</a>:</h4>
<p>hello! phd student learning rust here, wondering if anyone knows of a simple way to parse (already produced) <code>cargo bench</code> output? ideally want a format i can just pass to gnuplot or something of that sort. i am currently messing w a python script and regexes</p>



<a name="198286024"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/simple%20bench%20parsing%20option/near/198286024" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/simple.20bench.20parsing.20option.html#198286024">(May 21 2020 at 04:40)</a>:</h4>
<p>Hi! You should take a look at <a href="https://github.com/bheisler/criterion.rs">Criterion</a>. It's more accurate, produces plots and also has a CSV output.</p>



<a name="198309508"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/simple%20bench%20parsing%20option/near/198309508" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/simple.20bench.20parsing.20option.html#198309508">(May 21 2020 at 11:15)</a>:</h4>
<p>Of course, that's only if you can change the benchmark code. If not, I don't know another way than parsing the output.</p>



<a name="198347635"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/simple%20bench%20parsing%20option/near/198347635" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Natalie Popescu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/simple.20bench.20parsing.20option.html#198347635">(May 21 2020 at 17:04)</a>:</h4>
<p>Right, criterion seems like a great tool but unfortunately im looking for something a bit further downstream - thank you for the pointer though!</p>



<a name="198349890"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/simple%20bench%20parsing%20option/near/198349890" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/simple.20bench.20parsing.20option.html#198349890">(May 21 2020 at 17:21)</a>:</h4>
<p><span class="user-mention" data-user-id="302357">@Natalie Popescu</span> maybe you are looking for something like this? <a href="https://github.com/BurntSushi/cargo-benchcmp">https://github.com/BurntSushi/cargo-benchcmp</a></p>



<a name="198351132"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/simple%20bench%20parsing%20option/near/198351132" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/simple.20bench.20parsing.20option.html#198351132">(May 21 2020 at 17:31)</a>:</h4>
<p><a href="https://github.com/BurntSushi/cargo-benchcmp/blob/master/src/benchmark.rs#L107-L112">Weee</a></p>



<a name="198353523"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/simple%20bench%20parsing%20option/near/198353523" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/simple.20bench.20parsing.20option.html#198353523">(May 21 2020 at 17:51)</a>:</h4>
<p>"Self-documenting code" :D</p>



<a name="198356613"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/simple%20bench%20parsing%20option/near/198356613" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Natalie Popescu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/simple.20bench.20parsing.20option.html#198356613">(May 21 2020 at 18:16)</a>:</h4>
<p>ah yes cool, at the very least looks like that could help w the parsing.. thank you!!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>